package com.example.vdmtest;

public class MainTestItem {
    public static int AUTO_INT = 0;
    // 下载url
    String url;
    // 标题头
    String title;
    // 下载进度百分比
    int percent;
    // 下载速度
    long speed;
    // 下载状态
    int status;
    // 下控制位
    int control;

    String tip;

    public MainTestItem(String url) {
        this.url = url;
        title = "下载：" + String.valueOf(AUTO_INT);
        AUTO_INT++;
        percent = 0;
        speed = -1;
        status = -1;
        control = -1;
        tip = null;
    }

    @Override
    public String toString() {
        return "TestItem [url=" + url + ", title=" + title + ", percent=" + percent + ", speed=" + speed + ", status="
                + status + ", control=" + control + ", tip="
                + tip + "]";
    }

    public void clear() {
        percent = 0;
        speed = -1;
        status = -1;
        control = -1;
        tip = null;
    }
}
